<?php

/**
 * The template for displaying Tag Archive pages.
 *
 * @package WordPress
 * @subpackage Dooms
 * @since Dooms ver 1.0
 */

?>
<?php get_header(); ?>
<style>
#content_index #left_col #feature_articles {
margin-top: 30px;
}
</style>
<div id="content_index">
	<div style="position: absolute; top: 43px; left: 693px;">
		<img src="<?php bloginfo('template_url'); ?>/images/bg_fresh.jpg"/>
	</div>
	<div id="left_col">
		<div id="feature_articles">
			<?php $current_tag=single_tag_title( '', false); 
			$current_tag_slug = get_term_by('name', $current_tag, 'post_tag')?>
			<div id="current_tag_title"><a><?php echo $current_tag ?> </a></div>
			<?php 
			query_posts(array( 'tag' => $current_tag_slug->slug, 'posts_per_page' => -1, 'orderby' => 'post_date', 'order' => 'DESC' )); 
			while (have_posts()) : the_post(); 
			$image = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'single-post-thumbnail' );?>
			<div class="article">
				<a href="<?php the_permalink();?>" class="image"><?php echo "<img src='$image[0]' width=199 height=149/>"?></a>
				<a href="<?php the_permalink();?>" class="dooms-over"><?php the_title()?></a>
			</div>
			<?php endwhile;?>
		</div>
	</div>
	<div id="right_col">
		<?php fresh_display()?>
		<div id="twitter_feed"></div>
	</div>
</div>	

<div style="clear:both;"></div>
<?php wp_reset_query()?>
<?php get_footer(); ?>